﻿@model TbShop.Entity.AspNetRoles
@{
    var opt = string.IsNullOrEmpty(Model.Id)? "新增" : "修改";
    ViewBag.ModuleId = "Role";
    ViewBag.Title = opt + "角色";
    ViewBag.SiteMap = "<li><a href=\"" + Url.Content("~/Roles/Index/") + "\">角色列表</a></li>";
}

<div class="box box-primary">
    @using (Html.BeginForm("Edit", "Role", FormMethod.Post, new { @validate = "" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary()
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.CreatedBy)
        @Html.HiddenFor(model => model.CreatedDate)
        @Html.HiddenFor(model => model.IsDeleted)
        @Html.HiddenFor(model => model.VersionNumber)
        @Html.HiddenFor(model => model.IsSystem)
        <div class="box-body">
            <div class="form-group">
                <label for="Name"><strong class="notes">*</strong>名称</label>
                @Html.TextBoxFor(model => model.Name, new { @class = "form-control", @validate = "", @placeholder = "角色名称" })
            </div>
            <div class="box-footer">
                <button type="submit" class="btn btn-primary">保存</button>
                <a href="@(Url.Action("Index", "Role"))" class="btn btn-default">返回</a>
            </div>
        </div>
    }
</div>
